import request from '@/utils/request'


export function editInfo(data) {
    return request({
        url: `/admin/${data.id}`,
        method: 'put',
        params: data
    })
}
export function editpwdInfo(data) {
    return request({
        url: `/admin/${data.id}`,
        method: 'put',
        params:  data 
    })
}

export function checkAdminInfo(id) {
    return request({
        url: '/getAdminInfo',
        method: 'get',
        params: { admin_id: id }
    })
}